package router

import (
	"github.com/gin-contrib/pprof"
	"github.com/gin-gonic/gin"
	"net/http"
	"wf-deploy-agent/conf"
)

func attachHandlers(router *gin.Engine) {
	pprof.Register(router)
	registerStaticFS(router)
}

func registerStaticFS(router *gin.Engine) {
	router.StaticFS("/file", http.Dir(conf.GetFileDir()))
}
